package com.ketai.service.impl;

import com.ketai.dao.CActivityDao;
import com.ketai.dao.impl.CActivityDaoImpl;
import com.ketai.pojo.CActivity;
import com.ketai.service.CActivityService;

import javax.naming.NamingException;
import java.sql.SQLException;
import java.util.List;

/**
 * @Author:石林昭
 * @Description:
 * @Date:Create In 2022-08-04 10:32
 **/
public class CActivityServiceImpl implements CActivityService {
    CActivityDao cActivityDao = new CActivityDaoImpl();
    @Override
    public List<CActivity> checkClassify(String cid) {

        try {
         return cActivityDao.checkClassify(cid);
        } catch (SQLException e) {
            e.printStackTrace();
        } catch (NamingException e) {
            e.printStackTrace();
        }
        return null;
    }

    @Override
    public List<CActivity> AllCheckClf() {
        try {
            return cActivityDao.AllCheckClf();
        } catch (SQLException e) {
            e.printStackTrace();
        } catch (NamingException e) {
            e.printStackTrace();
        }
        return null;
    }
}
